from django.contrib import admin

from .models import Periods


@admin.register(Periods)
class PeriodsAdmin(admin.ModelAdmin):
    list_display = (
        "years",
        "months",
        "nmonth",
        "dn_pl",
        "dk_pl",
        "dn_lg",
        "dk_lg",
    )
    list_display_links = ("nmonth",)
    search_fields = ("years", "nmonth")
    list_filter = ("years", "months")
    list_per_page = 50

    actions = ("is_vt", "is_unvt")